package com.woniuxy.person.impl;

import com.woniuxy.person.Person;

import java.util.List;

/**
 * @Author: 马宇航
 * @Todo: 提供一个中国人，来继承这个接口
 * @DateTime: 22/03/23/0023 上午 11:21
 * @Component: 成都蜗牛学苑
 **/
public class Chinese implements Person {
    String name;
    List wifes;
    Wife wife;
    List<Wife> wifemen;
    public Chinese(String name) {
        this.name = name;
        System.out.println("中国人有参构造成功！");
    }

    public Chinese(String name, Wife wife) {
        this.name = name;
        this.wife = wife;
    }

    public Chinese(String name, List wifes) {
        this.name = name;
        this.wifes = wifes;
    }

    @Override
    public String toString() {
        return "Chinese{" +
                "name='" + name + '\'' +
                ", wifes=" + wifes +
                ", wife=" + wife +
                ", wifemen=" + wifemen +
                '}';
    }

    @Override
    public void eat() {
        System.out.println("我吃火锅，你吃火锅底料！");
    }
}
